<?php
/**
 * Created by PhpStorm.
 * User: lyw
 * Date: 2016/9/14
 * Time: 9:41
 */
class Text_message_recordController extends BaseController{
    function index(){
        $doNoteRecord = new DoNote_record();
        $count = $doNoteRecord->count();
        $page = new \tools\Page($count, 15);
        $noteRecords = $doNoteRecord->offset($page->limit)
            ->limit($page->pagesize)
            ->orderby('time desc')
            ->rows();
        require $this->template;
    }
}